﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.DataCollection.OperationCore.OperationEnum;
using ZR.DataCollection.OperationCore.OperationHelper;
using ZR.DataCollection.OperationCore.OperationMode.OP40;

namespace ZR.DataCollection.OperationCore.AbstractFactory.SpecificFactory
{
    public class IStationOP40Factory : BaseAbsFactory
    {
        public IStationOP40Factory(string stationType) : base(stationType)
        {
        }

        public override event Action<string> Event_Notification;

        public override IOperationModel GetOperationInfo(OperationTypeEnum operationType)
        {
            switch (operationType)
            {
                case OperationTypeEnum.Process:
                    return new ProcessOP40((int)operationType, _stationType);

                case OperationTypeEnum.Save:
                    return new DaveSaveOP40((int)operationType, _stationType);

                default:
                    return null;
            }
        }
    }
}